﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OblivionLevelingHelper.Attributes;

namespace OblivionLevelingHelper.Birthsigns
{
    public abstract class Birthsign
    {
        protected Dictionary<AttributeTypes, int> AttributeModifiers = new Dictionary<AttributeTypes, int>();
        public string Name { get; protected set; }
        public string Effect { get; protected set; }

        protected Birthsign(string name)
        {
            Name = name;
        }
        protected Birthsign(string name, string effect)
        {
            Name = name;
            Effect = effect;
        }

        public void AddAttributeModifier(AttributeTypes attributeType, int value)
        {
            AttributeModifiers.Add(attributeType, value);
        }

        public int GetAttributeModifier(AttributeTypes attributeType)
        {
            return AttributeModifiers.ContainsKey(attributeType) ? AttributeModifiers[attributeType] : 0;
        }
    }
}
